package org.laobai.shop.goods.service.impl;

import java.util.List;

import org.apache.dubbo.config.annotation.DubboService;
import org.laobai.shop.goods.entity.Category;
import org.laobai.shop.goods.mapper.CategoryMapper;
import org.laobai.shop.goods.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;

@DubboService
public class CategoryServiceImpl implements CategoryService {

	@Autowired
	private CategoryMapper categoryMapper;

	@Override
	public List<Category> getTreeByPid(Integer pid) {
		return categoryMapper.getTreeByPid(pid);
	}

}
